{extend name="public:layout" /}
{block name="title"}插入短途行程{/block}
{block name="head"}{/block}
{block name="body"}
<div class="ibox">
    <div class="ibox-title">
        <ol class="breadcrumb">
            <li><i class="fa fa-hand-o-right"></i> 插入短途行程</li>
        </ol>
    </div>
    <div class="ibox-content">
        <form method="post" class="form-horizontal" id="form">
            <div class="form-group">
                <label class="col-sm-2 control-label Validform_label">当前行程单</label>
                <div class="col-sm-10">
                    <p class="form-control-static">{$orderinfo.title}</p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label Validform_label">出发时间</label>
                <div class="col-sm-10">
                    <p class="form-control-static">
                        [{$orderinfo.order_start_time}]-[{$orderinfo.order_end_time}]
                    </p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label Validform_label">司机</label>
                <div class="col-sm-10">
                    <p class="form-control-static">{$orderinfo.fleet_driver}</p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label Validform_label">客户名称</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" placeholder="请输入客户名称" name="short_info[customer]" value="" datatype="*" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label Validform_label">出发地</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" placeholder="请输入出发地" name="short_info[order_start_adress]" value="{$orderinfo.order_end_adress}" datatype="*" />
                </div>
                <label class="col-sm-2 control-label Validform_label">目的地</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" placeholder="请输入目的地" name="short_info[order_end_adress]" value="" datatype="*" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label Validform_label">接车人</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" placeholder="请输入接车人" name="short_info[person]" value="" datatype="*" />
                </div>
                <label class="col-sm-2 control-label Validform_label">接车人电话</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" placeholder="请输入接车人电话" name="short_info[person_phone]" value="" datatype="*" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label Validform_label">接车时间</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control laydatetime" placeholder="请输入接车时间" name="short_info[person_time]" value="" datatype="*" />
                </div>
                <label class="col-sm-2 control-label Validform_label">用车费用</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" placeholder="请输入用车费用" name="short_price" value="" datatype="*" />
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-10 col-sm-offset-2">
                    <button class="btn btn-primary" id="btnSub" type="button">保存</button>
                    <a href="{:url('index',['mid'=>$Request.param.mid])}" class="btn btn-white">取消</a>
                    <span id="validError"></span>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}
{block name="script"}
<script>
    $(function () {
        formatDate();
        ajaxSubForm('#btnSub');
    });
</script>
{/block}